package com.woniuxy.order;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.order.config.PageInfo;
import com.woniuxy.order.dto.OrderListDto;
import com.woniuxy.order.dto.UserOrderDto;
import com.woniuxy.order.entity.OrderInfo;
import com.woniuxy.order.param.OrderListParam;
import com.woniuxy.order.param.UserOrderParam;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ...
 * @since 2024年05月22日
 */
public interface OrderInfoService extends IService<OrderInfo> {

    PageInfo<OrderListDto> orderList(OrderListParam param)throws Exception;

    UserOrderDto userOrder(UserOrderParam param, Integer accountId)throws Exception;

    String payUserOrder(String orderNum, Integer accountId)throws Exception;

    void productCallBack(Map<String, String> params)throws Exception;

    void refun(Integer orderNum, Integer accountId)throws Exception;
}
